/****** Object:  UserDefinedFunction [dbo].[fn_OpenSesame]    Script Date: 06/09/2015 17:05:24 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[fn_OpenSesame]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[fn_OpenSesame]
GO

/****** Object:  UserDefinedFunction [dbo].[fn_OpenSesame]    Script Date: 06/09/2015 17:05:24 ******/
CREATE FUNCTION [dbo].[fn_OpenSesame]() RETURNS VARCHAR(100) AS
BEGIN
RETURN (SELECT 'humpty dumpty sat on a wall');
END
GO